package study02;

/**
* @author GZQ
* @Date 2023/11/5
 */
//增长率
public class GrowthRate {
    public static void main(String[] args) {
        double r = 0.07;
        int n = 10;
        double p = Math.pow((1 + r), n);
        double percentage = (p - 1);
        System.out.println("10 年后我国国民生产总值\n" +
                "与现在相比增长\n" + percentage + "个百分比");
    }
}
